home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6095 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.win.tue.nl!not-for-mail
  2. From: exspectf@wsinis12.win.tue.nl (Richard Braeken)
  3. Newsgroups: comp.lang.c
  4. Subject: Solution Serial port Sparc Station -> C program
  5. Date: 22 Feb 1996 18:01:32 +0100
  6. Organization: Eindhoven University of Technology, The Netherlands
  7. Message-ID: <4gi7hc$po7@wsinis12.win.tue.nl>
  8. References: <4gfhb1$l3e@wsinis12.win.tue.nl>
  9. NNTP-Posting-Host: wsinis12.win.tue.nl
  10.  
  11.  
  12. Hello,
  13.  
  14. I have solved the problem. It is now properly working. The solution
  15. turned out to be to replace the following lines
  16.  
  17.   bla.c_iflag = 0;
  18.   bla.c_cflag = CS8 | CSTOPB | CLOCAL;
  19.  
  20. by
  21.  
  22.   bla.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG);
  23.   bla.c_iflag &= ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON);
  24.   bla.c_cflag &= ~(CSIZE | PARENB);
  25.   bla.c_cflag |= (CS8 | CSTOPB | CLOCAL);
  26.  
  27. You just have know it.
  28.  
  29. Thanks to anybody who tried to help me.
  30.  
  31.  
  32. Richard
  33. -- 
  34. Richard Braeken                   |                     Ura ni wa ura ga aru
  35. more info:                        |     The reverse sight has a reverse side 
  36.    finger exspectf@win.tue.nl     |                        (Japanese saying)
  37.